﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Data;
using DTOMall;
using DAOMall;

namespace BLLMall
{
    class MoviesBLL
    {
        MoviesDTO mControl = new MoviesDTO();
        public bool Insert(Movies b)
        {
            if (mControl.insert(b))
            {
                return true;
            }
            return false;
        }
        public bool Update(Movies b)
        {
            if (mControl.update(b))
            {
                return true;
            }
            return false;
        }
        public bool Delete(int id)
        {
            if (mControl.delete(id))
            {
                return true;
            }
            return false;
        }
        public DataTable getAll()
        {
            return mControl.getAll();
        }
        public Movies getByID(int id)
        {
            return (Movies)mControl.getByID(id);
        }
    }
}
